package com.zyndev.sanchi.controller.login;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * desc :
 * author: 张瑀楠
 * email : zyndev@gmail.com
 * date  : 2017/10/4 上午10:35
 * todo  :
 */
@RequestMapping("back")
@Controller
public class BackStageController {


    /**
     * Login string.
     *
     * @param userName the user name
     * @param password the password
     * @return the string
     */
    @RequestMapping("login")
    public String login(@RequestParam("userName") String userName, @RequestParam("password") String password) {

        return "login";
    }

    /**
     * Logout string.
     *
     * @return the string
     */
    @RequestMapping("logout")
    public String logout() {

        return "index";
    }

}
